package com.util.utillib.extend

import android.graphics.Color
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout


fun SwipeRefreshLayout.refresh(refresh: () -> Unit) {
    setColorSchemeColors(Color.parseColor("#5277D6"))
    setOnRefreshListener { refresh.invoke() }
}